package cn.tedu.tmall.admin.mall.dao.serch.impl;

import cn.tedu.tmall.admin.mall.dao.serch.GoodsElasticserchSerchRepository;
import cn.tedu.tmall.admin.mall.dao.serch.IGoodsSearchRepository;
import cn.tedu.tmall.common.pojo.po.GoodsSearchPO;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public class GoodsSearchRepository implements IGoodsSearchRepository {
    @Autowired
    private GoodsElasticserchSerchRepository goodsElasticserchSerchRepository;
    @Override
    public void saveAll(List<GoodsSearchPO> goodsList) {
        goodsElasticserchSerchRepository.saveAll(goodsList);
    }
}
